class Day {
    /**
     * 获取天数
     * @param year
     * @param month
     * @returns {Promise<number>}
     */
    async getDaysInOneMonth(year, month) {
        month = parseInt(month, 10);
        var day = new Date(year, month, 0);
        return day.getDate();
    }
}
module.exports = new Day();
